<template>
  <div>
    <div class="nabas">
      <el-tabs v-model="activeName" @tab-click="handleClick">
        <el-tab-pane
          v-for="(item, index) in luy"
          :label="item.titlie"
          :name="item.to"
          :key="index"
        ></el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
export default {
  props: ["datas"],
  watch: {
    datas(val) {
      // console.log(val);
    },
  },
  data() {
    return {
      activeName: this.$route.path,
      luy: this.datas,
    };
  },
  created() {
    // console.log(this.datas);
  },
  methods: {
    handleClick(e) {
      // console.log(e)
      this.$router.push(e.$options.propsData.name);
    },
  },
};
</script>

<style lang="less" scoped>
.nabas {
  height: 50px;
}
/deep/.el-tabs__nav-wrap::after {
  content: none;
}
/deep/.el-tabs__item.is-active {
  color: rgb(29, 28, 28);
}
/deep/.el-tabs__item {
  color: rgb(80, 80, 80);
}
/deep/.el-tabs__item:hover {
  color: rgb(44, 43, 43);
}
/deep/.is-active {
  color: rgb(29, 28, 28);
  font-size: 19px;
  font-weight: 550;
}
/deep/.el-tabs__active-bar {
  height: 3px;
  background-color: #ec4141;
}
</style>